package me.heizi.springboot.students.config

import org.mybatis.spring.annotation.MapperScan
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import org.springframework.context.annotation.ComponentScan
import org.springframework.transaction.annotation.EnableTransactionManagement

@SpringBootApplication
@MapperScan("me.heizi.springboot.students.repositories")
@ComponentScan("me.heizi.springboot.students")
@EnableTransactionManagement
class StudentManageApplication {
    companion object {
        @JvmStatic
        fun main(args: Array<String>) {
            runApplication<StudentManageApplication>(*args)
        }
    }
}
